<?php /* Smarty version Smarty-3.0.8, created on 2011-09-13 01:49:45
         compiled from "./templates/tattoo\video.tpl" */ ?>
<?php /*%%SmartyHeaderCode:259904e6ea8a9dcd164-14944410%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '51203e6dc2e9e3fa2c611dd0c24d311f3511a15a' => 
    array (
      0 => './templates/tattoo\\video.tpl',
      1 => 1315874979,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '259904e6ea8a9dcd164-14944410',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="page">

    <div class="sidebar_page">
        <div class="content" id="video_content">
            <div id="articles">
                <div class="page_capt clearfix">
                    <div class="fl_left">
                        <h2>Video</h2>
                        <iframe width="640" height="390" src="http://www.youtube.com/embed/<?php echo $_smarty_tpl->getVariable('mainVideo')->value;?>
" frameborder="0" allowfullscreen></iframe>
                    </div>
                </div>
            </div>
            <div class="cols3spanL" id="botom_boxes">
                <div class="col">
                    <div id="comments">
                        <h2>Komentari</h2>
                            <p>Ukupno  komentara.</p>
                        <ul>
                            <?php  $_smarty_tpl->tpl_vars['videoComment'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('videoComments')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['videoComment']->key => $_smarty_tpl->tpl_vars['videoComment']->value){
?>
                                <li class="clearfix" id="comment-id-">
                                    <img class="fl_left" src="<?php if ($_smarty_tpl->tpl_vars['videoComment']->value['slika']!=''){?><?php echo $_smarty_tpl->getVariable('media')->value;?>
/autori/<?php echo $_smarty_tpl->tpl_vars['videoComment']->value['username'];?>
/slike_za_profil/<?php echo $_smarty_tpl->tpl_vars['videoComment']->value['slika'];?>
<?php }else{ ?><?php echo $_smarty_tpl->getVariable('media')->value;?>
/images/user_img.png<?php }?>" width="40" height="40" />
                                    <span><a class="comment_aut" href=""><?php echo $_smarty_tpl->tpl_vars['videoComment']->value['username'];?>
</a> </span><?php echo $_smarty_tpl->tpl_vars['videoComment']->value['komentar'];?>

                                    <div><?php echo $_smarty_tpl->tpl_vars['videoComment']->value['datum_vreme_upisa'];?>
</div>
                                </li>
                            <?php }} ?>
                        </ul>
                        <h2 id="addCommentPage">Dodajte komentar</h2>
                        <?php if ($_smarty_tpl->getVariable('userIsLogged')->value){?>


                            <form id="comments_form" name="comments_form" action="" method="post">
                                <label for="comment_content">Komentar:</label><br />
                                <textarea id="comment_content" name="komentar" cols="" rows="4"></textarea>
                                <p class="tRight"><input id="comment_submit" name="comment_submit" type="submit" value="Dodaj komentar" /></p>
                                <input name="username" type="hidden" value="<?php echo $_smarty_tpl->getVariable('user')->value['username'];?>
" />
                                <input name="p" type="hidden" value="" />
                            </form>
                        <?php }else{ ?>
                            <h3>Ulogujte se kako bi dodali komentar. Hvala.</h3>
                            <br />
                            <p><a class="red" href="#account_box">Prijavi se</a> | <a class="red" href="<?php echo $_smarty_tpl->getVariable('url')->value;?>
/?page=registracija">Registruj se</a></p>	
                        <?php }?>
                    </div>
                </div>
            </div>        

        </div>
        <div class="sidebar" id="video_sidebar">
            <div class="video_block">  
                <?php  $_smarty_tpl->tpl_vars['sideVideo'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('sideVideos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['sideVideo']->key => $_smarty_tpl->tpl_vars['sideVideo']->value){
?>
                    <div class="video_image">
                        <a href="?page=video&videoid=<?php echo $_smarty_tpl->tpl_vars['sideVideo']->value['id'];?>
"><img width="106" height="64" src="<?php echo $_smarty_tpl->tpl_vars['sideVideo']->value['thumb'][0]['url'];?>
" /></a>
                        <h4><a href="?page=video&videoid=<?php echo $_smarty_tpl->tpl_vars['sideVideo']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['sideVideo']->value['title'];?>
</a></h4>
                        <p><?php echo $_smarty_tpl->tpl_vars['sideVideo']->value['views'];?>
 views</p>
                    </div>
                <?php }} ?>
            </div>
            <div class="gal_nav">
                <?php echo $_smarty_tpl->getVariable('paginatorSidebarVideos')->value;?>

            </div>

        </div>
    </div>
</div>